<?php
/**
 * Created by PhpStorm.
 * User: stc17
 * Date: 2020/3/5
 * Time: 16:29
 */

namespace SwoCloud\Supper;

class Arithmetic
{
    protected  static $roundLastIndex=0;

    public static function round(array $list)
    {
        $index=self::$roundLastIndex;
        $url=$list[$index];
        if($index+1>count($list)-1){
            self::$roundLastIndex=0;
        }else{
            self::$roundLastIndex++;
        }
        return $url;
    }
}